import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';

class GetPage extends StatefulWidget {
  GetPage({Key? key}) : super(key: key);

  @override
  _GetPageState createState() => _GetPageState();
}

class _GetPageState extends State<GetPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Get"),
      ),
    );
  }

  void _getHttp() async {
    var url = Uri.parse("https://jd.itying.com/api/pcate");
    var reponse = await http.get(url);
    print(reponse.statusCode);
    print(reponse.body);
  }
}
